<?php
    include("./dbconn.php");

    $title = '模拟数据';
    $imgUrl = '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/f941386e72f745b02e8921b6c8055cd6.jpg?thumb=1&w=40&h=40&f=webp&q=90';
    $hot = '0';
    $id = 184;
    $sql = "update midata set title='$title', imgUrl='$imgUrl', hot='$hot' where Id=$id";

    if($conn->query($sql)){
        $data["code"] = 0;
    }else{
        $data["code"] = 1;
    }
    echo json_encode($data);
?>